package com.lagou.rpc.consumer;

import com.lagou.rpc.api.IUserService;
import com.lagou.rpc.consumer.proxy.RpcClientProxy;
import com.lagou.rpc.pojo.User;

/**
 * 测试类
 */
public class ClientBootStrap {
    public static void main(String[] args) throws InterruptedException {


        int i = 3;
        for(int j = 0; j < i;j++){
            IUserService userService = (IUserService) RpcClientProxy.createProxy(IUserService.class);
            User user = userService.getById(1);
            System.out.println(user);
        }
    }
}
